package gps.methods.dfs;

import gps.Node;
import gps.methods.BaseMethod;
import gps.methods.BaseNode;
import gps_api.Rule;
import gps_api.State;

public class DeepFirstMethod extends BaseMethod{

	@Override
	public void addChild(State state, Rule rule) {
		Node node= new BaseNode(lastNode, state, rule, 0.0, 0.0);
		if(!isInOpenedList(node)){
			openedNodes.addFirst(node);	
		}
		
	}

}
